home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Book of Tells
/
The Book of Tells.iso
/
main.dir
/
00011_Script_11
< prev
next >
Wrap
Text File
|
1994-09-21
|
3KB
|
125 lines
on startMovie
preLoadCast "vidgallery1"
preLoadCast "vidgallery2"
preLoadCast "caro1"
preLoadCast "caro2"
preLoadCast "glossary1"
preLoadCast "glossary2"
preLoadCast "help1"
preLoadCast "help2"
preLoadCast "credits1"
preLoadCast "credits2"
preLoadCast "quit1"
preLoadCast "quit2"
end startMovie
-- ******************************************************
-- Name: buttonAction
-- Description:
--
-- Example: buttonAction(TRUE)
-- ******************************************************
on buttonAction silent
global activated
set activated = TRUE
if not(silent=TRUE) then sound playfile 1, "MousDown"
set ButtonUpName = the name of cast (the castnum of sprite the ClickOn)
set tmp1=ButtonUpName&"1"
set ButtonDownName = ButtonUpName&"2"
set the castnum of sprite the ClickOn = the number of cast tmp1
updatestage
startTimer
repeat while the timer < 5
end repeat
set buttonOn=TRUE
repeat while the stillDown = TRUE
if rollover (the clickOn) = TRUE then
if buttonOn=FALSE then
set buttonON=TRUE
set the castnum of sprite the ClickOn = the number of cast tmp1
updatestage
startTimer
repeat while the timer < 5
end repeat
else
set activated = TRUE
set the castnum of sprite the ClickOn = the number of cast ButtonDownName
updatestage
end if
else
set buttonOn=FALSE
set activated = FALSE
set the castnum of sprite the ClickOn = the number of cast ButtonUpName
updatestage
end if
end repeat
if activated = FALSE then exit
set the castnum of sprite the ClickOn = the number of cast ButtonUpName
updatestage
end buttonAction
-- ******************************************************
-- Name: putHelp
-- Description:
--
-- Example:
-- ******************************************************
on putHelp castMemName,spriteNum
set hInstance = the mouseh
set vInstance = the mousev
set the castNum of sprite spriteNum to the number of cast castMemName
set the loch of sprite spriteNum to hInstance
set the locv of sprite spriteNum to vInstance
updateStage
repeat while the stilldown
end repeat
set the loch of sprite spriteNum to -300
set the loch of sprite spriteNum to -300
updateStage
end putHelp
-- ******************************************************
-- Name: playAif
-- Description:
--
-- Example:
-- ******************************************************
on playAif soundFName
if the machineType=256 then
sound playfile 1,the pathname&"sounds\"&soundFName&".aif"
else
sound playfile 1,the pathname&"sounds:"&soundFName&".aif"
end if
end playAif